package jk.wrapper.config;

import java.util.LinkedList;
import java.util.List;

import jk.wrapper.handle.TagHandle;

public class PropertyMapConfig {
	private String id;
	private String field;
	private boolean isEmpty;
	private String notparent;
	private String inparent;
	private String defValue;
	private LinkedList<TagHandle> tagHandleList = new LinkedList<TagHandle>();

	public PropertyMapConfig(String id, String field, boolean isEmpty, String notparent, String inparent, String defValue) {
		this.id = id;
		this.field = field;
		this.isEmpty = isEmpty;
		this.notparent = notparent;
		this.inparent = inparent;
		this.defValue = defValue;
	}

	public String getId() {
		return id;
	}

	public String getField() {
		return field;
	}

	public boolean isEmpty() {
		return isEmpty;
	}

	public String getNotparent() {
		return notparent;
	}

	public String getInparent() {
		return inparent;
	}
	
	public String getDefValue()	 {
		return defValue;
	}
	
	public List<TagHandle> getTagHandleList() {
		return this.tagHandleList;
	}
	
	public void addTagHandle(TagHandle tagHandle) {
		tagHandleList.add(tagHandle);
	}
	
	public void addTagHandleFirst(TagHandle tagHandle) {
		tagHandleList.addFirst(tagHandle);
	}
	
}
